//extern "C"
//{
#include <string.h>
//}
//#include <iostream>
#include <iostream>
using namespace std;
#include "Head.h"

int Head::max(int a, int b, int c)
{
	if (a > b)
	{
		b = a;
	}
	if(c > b)
	{
		b = c;
	}

	return b;
}

long Head::max(long a, long b, long c)
{
	if (a > b)
	{
		b = a;
	}
	if(c > b)
	{
		b = c;
	}

	return b;
}

char Head::max(char a, char b, char c)
{
	if (a > b)
	{
		b = a;
	}
	if(c > b)
	{
		b = c;
	}

	return b;
}

//inline float Head::max(float a, float b, float c)
//{
//	if (a > b)
//	{
//		b = a;
//	}
//	if(c > b)
//	{
//		b = c;
//	}
//
//	return b;
//}



//extern "C"
//{

stu::stu()
{
	number = 9527;
	strcpy(name, "Hua an");
	gender = 'm';
}

stu::stu(int num, char *na, char gen)
{
	number = num;
	strcpy(name, na);
	gender = gen;
}

stu::~stu()
{
	;
}
//}
void stu::display(void)
{
	cout << number << " ";
	cout << name << " ";
	cout << gender << endl;
	
}

student::student(int num, char *na, char gen, int para_age, char *para_address) : stu(num, na, gen)
{
	age = para_age;
	strcpy(address, para_address);
}

void student::show()
{
	display();
	cout << number << " ";
	cout << age << " ";
	cout << address << endl;
}